import request from '@/utils/request'

// 获取企业列表
export function getEnterpriseList(params) {
  return request({
    url: '/api/admin/enterprise-manage/list',
    method: 'get',
    params
  })
}

// 获取企业详细资料
export function getEnterpriseDetail(enterpriseId) {
  return request({
    url: `/api/admin/enterprise-manage/certification/${enterpriseId}`,
    method: 'get'
  })
}

// 禁用企业
export function disableEnterprise(id) {
  return request({
    url: `/api/admin/enterprise-manage/disable/${id}`,
    method: 'post'
  })
}

// 启用企业
export function enableEnterprise(id) {
  return request({
    url: `/api/admin/enterprise-manage/enable/${id}`,
    method: 'post'
  })
} 